--[[

        magickey_lvup.lua
        exported by excel2lua.py
        from file:magickey_lvup.xlsx

--]]

local _data = {
  [1] = {id = 1,lv = 1,cost_type1 = 1,cost_value1 = 2,cost_size1 = 100,attr_id = 105,attr_value = 10,},
  [2] = {id = 1,lv = 2,cost_type1 = 1,cost_value1 = 2,cost_size1 = 100,attr_id = 101,attr_value = 100,},
  [3] = {id = 1,lv = 3,cost_type1 = 1,cost_value1 = 2,cost_size1 = 100,attr_id = 103,attr_value = 400,},
  [4] = {id = 1,lv = 4,cost_type1 = 1,cost_value1 = 2,cost_size1 = 100,attr_id = 101,attr_value = 100,},
  [5] = {id = 1,lv = 5,cost_type1 = 1,cost_value1 = 2,cost_size1 = 100,attr_id = 107,attr_value = 200,},
  [6] = {id = 1,lv = 6,cost_type1 = 1,cost_value1 = 2,cost_size1 = 100,attr_id = 103,attr_value = 400,},
  [7] = {id = 1,lv = 7,cost_type1 = 1,cost_value1 = 2,cost_size1 = 100,attr_id = 101,attr_value = 100,},
  [8] = {id = 1,lv = 8,cost_type1 = 1,cost_value1 = 2,cost_size1 = 100,attr_id = 103,attr_value = 400,},
  [9] = {id = 1,lv = 9,cost_type1 = 1,cost_value1 = 2,cost_size1 = 100,attr_id = 101,attr_value = 100,},
  [10] = {id = 1,lv = 10,cost_type1 = 1,cost_value1 = 2,cost_size1 = 100,attr_id = 105,attr_value = 10,},
  [11] = {id = 1,lv = 11,cost_type1 = 1,cost_value1 = 2,cost_size1 = 100,attr_id = 101,attr_value = 100,},
  [12] = {id = 1,lv = 12,cost_type1 = 1,cost_value1 = 2,cost_size1 = 100,attr_id = 103,attr_value = 400,},
  [13] = {id = 1,lv = 13,cost_type1 = 1,cost_value1 = 2,cost_size1 = 100,attr_id = 101,attr_value = 100,},
  [14] = {id = 1,lv = 14,cost_type1 = 1,cost_value1 = 2,cost_size1 = 100,attr_id = 103,attr_value = 400,},
  [15] = {id = 1,lv = 15,cost_type1 = 1,cost_value1 = 2,cost_size1 = 100,attr_id = 108,attr_value = 400,},
  [16] = {id = 1,lv = 16,cost_type1 = 1,cost_value1 = 2,cost_size1 = 100,attr_id = 101,attr_value = 100,},
  [17] = {id = 1,lv = 17,cost_type1 = 1,cost_value1 = 2,cost_size1 = 100,attr_id = 103,attr_value = 400,},
  [18] = {id = 1,lv = 18,cost_type1 = 1,cost_value1 = 2,cost_size1 = 100,attr_id = 101,attr_value = 100,},
  [19] = {id = 1,lv = 19,cost_type1 = 1,cost_value1 = 2,cost_size1 = 100,attr_id = 103,attr_value = 400,},
  [20] = {id = 1,lv = 20,cost_type1 = 1,cost_value1 = 2,cost_size1 = 100,attr_id = 105,attr_value = 10,},
}

local id_to_index={
   ['1_1'] = 1,
   ['1_2'] = 2,
   ['1_3'] = 3,
   ['1_4'] = 4,
   ['1_5'] = 5,
   ['1_6'] = 6,
   ['1_7'] = 7,
   ['1_8'] = 8,
   ['1_9'] = 9,
   ['1_10'] = 10,
   ['1_11'] = 11,
   ['1_12'] = 12,
   ['1_13'] = 13,
   ['1_14'] = 14,
   ['1_15'] = 15,
   ['1_16'] = 16,
   ['1_17'] = 17,
   ['1_18'] = 18,
   ['1_19'] = 19,
   ['1_20'] = 20,
}

local magickey_lvup={}

function magickey_lvup.length() 
   return #_data 
end 

function magickey_lvup.indexOf(index) 
   return _data[index] 
end 

function magickey_lvup.get(value0,value1) 
  return magickey_lvup.indexOf(id_to_index[value0..'_'..value1])
end 

return magickey_lvup